package cn.com.roy.thread.t4_1_5.mustusermoreconditionerror;


public class Run {
    public static void main(String[] args) {
        try {
            MyService service = new MyService();
            ThreadA a = new ThreadA(service);
            ThreadB b = new ThreadB(service);
            a.setName("A");
            a.start();
            b.setName("B");
            b.start();
            Thread.sleep(3000);
            service.signalALL();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
